//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Query Application Block
//===============================================================================

using System;

namespace EntLibContrib.Query.Instrumentation
{
	/// <summary>
	/// Provides data for the <see cref="QueryInstrumentationProvider.QueryWrite"/> event.
	/// </summary>
	public class QueryWriteEventArgs : EventArgs
	{
		#region Fields
		private QueryType queryType;
		#endregion

		#region Properties
		/// <summary>
		/// Gets the type of the query.
		/// </summary>
		/// <value>The type of the query.</value>
		public QueryType QueryType
		{
			get { return queryType; }
		}
		#endregion

		#region Construction
		/// <summary>
		/// Initializes a new instance of the <see cref="QueryWriteEventArgs"/> class.
		/// </summary>
		/// <param name="queryType">Type of the query.</param>
		public QueryWriteEventArgs(QueryType queryType)
		{
			this.queryType = queryType;
		}
		#endregion
	}
}